package org.com.ashen.service.dao;

import org.com.ashen.dal.dataobject.SMSCharge;
import org.com.ashen.dal.mapper.SMSChargeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("sMSChargeDao")
public class SMSChargeDao {
	@Resource
    private SMSChargeMapper sMSChargeMapper;
	
	public int insert(SMSCharge record) {
        if (record == null) {
            return 0;
        }
        return sMSChargeMapper.insert(record);
    }

    public int updateByPrimaryKeySelective(SMSCharge record){
        if (record == null) {
            return 0;
        }
        return sMSChargeMapper.updateByPrimaryKeySelective(record);
    }

    public SMSCharge selectMaxId(){
	    return sMSChargeMapper.selectMaxId();
    }
}
